const fs = require('fs');
const handlebars = require('handlebars')
const chalk = require('chalk')
module.exports = async () => {
    const list = fs.readdirSync('./src/views')
        .filter((v) => v !== "homepage.vue")
        .map((v) => ({
            name: v.replace(".vue", "").toLowerCase(),
            file:v,
        }));
}
// 生成路由定义
comp

function compile(meta, filePath, templatePath){
    if (fs.existsSync(templatePath)){
        const content = fs.readFileSync()
    }
}